package com.softline.documentsmall.controller;

import com.softline.documentsmall.entity.PageQueryVO;
import com.softline.documentsmall.ret.ReturnVO;
import com.softline.documentsmall.service.EntryDetailLogService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import io.swagger.annotations.Api;


/**
 * @author wph
 * @date 2021/01/18 15:21
 */
@Api(value="最新发布__维护报告相关接口",tags={"最新发布__维护报告相关接口"})
@RestController
@RequestMapping("/detail")
@CrossOrigin(allowCredentials = "true",allowedHeaders = "*")
public class EntryDetailLogController {
     @Autowired
     private EntryDetailLogService  entryDetailLogService;

    @ApiOperation(value="最新发布页列表查询", notes = "最新发布页列表查询")
    @PostMapping(value = "/getDetailsLogList")
    public ReturnVO getDetailsLogList(@RequestBody PageQueryVO pageQuery){
        return entryDetailLogService.getDetailsLogList(pageQuery);
    }

    @ApiOperation(value="维护报告列表查询(gener:1:术语库,2:语音库,3:语料库,4:知识库)", notes = "维护报告列表查询(gener:1:术语库,2:语音库,3:语料库,4:知识库)")
    @PostMapping(value = "/getVindicateList")
    public ReturnVO getVindicateList(@RequestBody PageQueryVO pageQuery){
        return entryDetailLogService.getVindicateList(pageQuery);
    }

}
